package com.edu.web.servlet;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import com.edu.utils.ValidatePropertiesUtils;

/**
 * @author piggsoft
 * @e-mail piggsoft@163.com
 * @since 2013-4-14
 * @version 1.0
 */
public class PropertiesInitServlet extends HttpServlet{

	/**
	 * 
	 */
	private static final long serialVersionUID = -650847182367399374L;

	@Override
	public void init(ServletConfig config) throws ServletException {
		super.init(config);
		String validateLocation = getInitParameter("validateLocation");
		String path = config.getServletContext().getRealPath("") + validateLocation;
		ValidatePropertiesUtils.init(path);
	}

}
